#{extends 'orgLead.html' /}
 #{ifErrors} ${error} #{/ifErrors}
<title>Invite Organizers</title>

<table>
	<tr>
		<form action="@{Application.requestOrganizer()}">
			<input type="hidden" name="depId" value="${dep.id}">
		<td>Select User:</td>
		<td><select name="userId"> #{list items: users, as: 'user'}
				<option value="${user.id}">${user.nickName}</option> #{/list}
		</select></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" value="Invite User" />
		</td>
	</tr>
	</form>

	<tr>
		<form action="@{Application.sendingInvites()}">
			<input type="hidden" name="depId" value="${dep.id}">
		<td>OR Invite Others (Enter E-mail):</td>
		<td><input type="text" name="email">
			<span style="color: #c00" class="error">#{error 'email' /}</span>
		</td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" value="Invite User" />
		</td>
	</tr>
	</form>
</table>
<span style="color: #c00" class="error">#{error 'invited' /}</span>
<br>
<a href="@{Application.viewDepartment(dep.id)}">Back To Department
	${dep.name}</a>
